package com.hitqz.robot.api.business.dto.cvd;

import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.annotation.format.DateTimeFormat;
import com.alibaba.excel.annotation.write.style.ColumnWidth;
import com.alibaba.excel.annotation.write.style.ContentRowHeight;
import com.alibaba.excel.annotation.write.style.HeadRowHeight;
import com.hitqz.robot.api.business.component.MyStringImageConverter;
import lombok.Data;

import java.time.LocalDateTime;
import java.util.Date;
import java.util.Objects;

/**
 * @author wengyx
 * @date 2024/8/7
 * 检测结果
 */
@Data
@ExcelIgnoreUnannotated
@HeadRowHeight(20)
@ColumnWidth(20)
@ContentRowHeight(20)
public class CvdSafeExcelDto {
    @ExcelProperty(value = "序号")
    private Integer index;

    @ExcelProperty(value = "安全类型")
    private String type;

    @DateTimeFormat("yyyy-MM-dd HH:mm:ss")
    @ExcelProperty(value = "发生时间")
    private LocalDateTime time;

    @ExcelProperty(value = "异常点位")
    private String pos;

    @ExcelProperty(value = "事件内容")
    private String content;
}
